<html><head><title>UnbindEvent</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">UnbindEvent()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#3A3966"><b>UnbindEvent</b></font>(Event, @Callback() [, Window [, Object [, EventType]]])  </blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Unbind an event from a callback. If no matching event callback is found, this 
command has no effect. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Event</i></td>
<td width="90%"> 
The event to unbind. For a full list of events, see <a href="windowevent.html">WindowEvent()</a>. Custom 
events are also supported, when using <a href="postevent.html">PostEvent()</a>. 

</td></tr>
<tr><td><i>@Callback()</i></td>
<td> 
The callback procedure to unbind. 

</td></tr>
<tr><td><i>Window (optional)</i></td>
<td> 
The #Window number to unbind the event. 

</td></tr>
<tr><td><i>Object (optional)</i></td>
<td> 
The object number to unbind the event. It can be a gadget, menuitem or systray number. 

</td></tr>
<tr><td><i>EventType (optional)</i></td>
<td> 
The event type to unbind the event from. For a full list of supported types, see <a href="eventtype.html">EventType()</a>. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">Procedure</font></b> <font color="#3A3966">SizeWindowHandler</font>()
    <b><font color="#3A3966">Debug</font></b> &quot;Size event on window #&quot; +<font color="#3A3966"> EventWindow</font>()
  <b><font color="#3A3966">EndProcedure</font></b>
  
<font color="#3A3966">  OpenWindow</font>(0, 100, 100, 200, 200, &quot;Resize test&quot;, <font color="#924B72">#PB_Window_SizeGadget</font> | <font color="#924B72">#PB_Window_SystemMenu</font>)
  
<font color="#3A3966">  BindEvent</font>(<font color="#924B72">#PB_Event_SizeWindow</font>, @SizeWindowHandler())
<font color="#3A3966">  UnbindEvent</font>(<font color="#924B72">#PB_Event_SizeWindow</font>, @SizeWindowHandler()) <font color="#3A3966">; Unbind it immediately</font>
  
  <b><font color="#3A3966">Repeat</font></b>
    Event =<font color="#3A3966"> WaitWindowEvent</font>()
  <b><font color="#3A3966">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>
<a href="bindevent.html">BindEvent()</a>, <a href="../gadget/bindgadgetevent.html">BindGadgetEvent()</a>, <a href="../menu/bindmenuevent.html">BindMenuEvent()</a>, <a href="windowevent.html">WindowEvent()</a>, <a href="waitwindowevent.html">WaitWindowEvent()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=stickywindow.html>StickyWindow()</a> - <a href="index.html">Window Index</a> - <a href="waitwindowevent.html">WaitWindowEvent()</a> -><br><br>

</body></html>